﻿<%@ Page Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true"
    CodeFile="NhapTTGV.aspx.cs" Inherits="QuanTri_NhapTTGV" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head1" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Thông tin về giáo viên
                </div>
                    <div>
                        <asp:GridView ID="grvExcel" runat="server" AutoGenerateColumns="False" Width="100%"
                            AllowPaging="True" Height="28px" ShowFooter="True" OnSelectedIndexChanged="grvExcel_SelectedIndexChanged">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="ckCheck" runat="server" /></ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="STT">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblSTT" runat="server" Text='<%# Container.DataItemIndex + 1 %>'>
                                            </asp:Label></center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Tên GV">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label runat="server" ID="lblMa" Text='<%#Bind("MaCanBoGV")%>' Visible="false">
                                            </asp:Label>
                                            <asp:TextBox runat="server" ID="txtTenCanBo" Text='<%#Bind("TenCanBo") %>' CssClass="textbox1">
                                            </asp:TextBox></center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Ngày sinh">
                                    <ItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtNgaySinh" runat="server" CssClass="textbox1"  Text='<%#Bind("NgaySinh") %>'>
                                            </asp:TextBox>
                                            <asp:CalendarExtender ID="cldNgaySinh" TargetControlID="txtNgaySinh" Format="dd/mm/yyyy"
                                                runat="server">
                                            </asp:CalendarExtender>
                                        </center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Giới tính">
                                    <ItemTemplate>
                                        <center>
                                            <asp:RadioButton ID="rdoNam"  runat="server" Checked='<%#Bind("Nam") %>' />Nam
                                            <asp:RadioButton
                                                ID="rdoNu"  runat="server" Checked='<%#Bind("Nu") %>' />Nữ
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Địa chỉ">
                                    <ItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtDiaChi" runat="server" CssClass="textbox1" Text='<%#Bind("DiaChi") %>'></asp:TextBox></center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Email">
                                    <ItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtEmail"  runat="server" CssClass="textbox1" Text='<%#Bind("Email") %>'>
                                            </asp:TextBox></center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Số ĐT">
                                    <ItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtSDT" runat="server" CssClass="textbox1" Text='<%#Bind("SDT") %>'></asp:TextBox></center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                            <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
                        </asp:GridView>
                    </div>
                    <div style="padding-left: 350px; padding-top: 10px;">
                      <asp:LinkButton ID="lbtSua" CssClass="Link"  runat="server" 
                    Font-Underline="False" onclick="lbtSua_Click" > <img src="../images/update.png" style="border:0px;" /><b>&nbsp;Sửa</b></asp:LinkButton>&nbsp;&nbsp&nbsp&nbsp&nbsp&nbsp;&nbsp&nbsp
                     <asp:LinkButton ID="lbtXoa" CssClass="Link"  runat="server" 
                    Font-Underline="False"> <img src="../images/delete.png" style="border:0px;" /><b>&nbsp;Xóa</b></asp:LinkButton>&nbsp; &nbsp;&nbsp&nbsp&nbsp;&nbsp&nbsp
                    </div>
                </div>
                  <div>
                    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                        Width="100%">
                        <asp:TabPanel ID="tab1" runat="server" HeaderText="Nhập từ Text">
                            <ContentTemplate>
                                <div class="personal_style_form">
                                    <span class="personal_laber">Họ và tên </span>
                                    <asp:TextBox runat="server" ID="txtHoTen" Width="250px"></asp:TextBox><asp:Label
                                        ID="lblMa" runat="server" Visible="false">
                                    </asp:Label></div>
                                <div class="personal_style_form">
                                    <span class="personal_laber">Ngày sinh</span>
                                    <asp:TextBox runat="server" ID="txtNgaySinh" Width="250px"></asp:TextBox><asp:CalendarExtender
                                        ID="cldNgaySinh" TargetControlID="txtNgaySinh" Format="dd/mm/yy" runat="server"
                                        Enabled="True">
                                    </asp:CalendarExtender>
                                </div>
                                <div class="personal_style_form">
                                    <span class="personal_laber">Giới tính </span>
                                    <asp:RadioButton runat="server" ID="rdoNam" GroupName="GioiTinh"/>Nam&nbsp;&nbsp;
                                    <asp:RadioButton runat="server" ID="rdoNu" GroupName="GioiTinh"  />Nữ
                                </div>
                                <div class="personal_style_form">
                                    <span class="personal_laber">Địa chỉ </span>
                                    <asp:TextBox runat="server" ID="txtDiaChi" Width="250px"></asp:TextBox>
                                </div>
                                <div class="personal_style_form">
                                    <span class="personal_laber">Email </span>
                                    <asp:TextBox runat="server" ID="txtEmail" Width="250px">
                                    </asp:TextBox></div>
                                <div class="personal_style_form">
                                    <span class="personal_laber">Số điện thoại liên lạc </span>
                                    <asp:TextBox runat="server" ID="txtSDT" Width="250px"></asp:TextBox></div>
                                <div style="text-align: center">
                                    <label runat="server" id="lblThongBao" style="color: Red; text-align: center">
                                    </label>
                                </div>
                                <div style="padding-left: 210px; padding-top: 10px;">
                                 <asp:LinkButton runat="server" ID="lbtThem" CssClass="Link" onclick="lbtThem_Click"><img src="../images/user.png" style="border:0px;"/><b>&nbsp;Thêm giáo viên</b></asp:LinkButton>&nbsp&nbsp&nbsp&nbsp&nbsp;&nbsp&nbsp</div>
                            </ContentTemplate>
                        </asp:TabPanel>
                        <asp:TabPanel ID="tab2" runat="server" HeaderText="Nhập từ Excel">
                            <ContentTemplate>
                                <div class="personal_style_form">
                                    <span class="personal_laber">Đường dẫn </span>
                                    <asp:FileUpload ID="fulExcel" runat="server" />&nbsp&nbsp&nbsp&nbsp
                                    <asp:Button ID="btnNhapExcel" runat="server" Width="100px" Text="Nhập từ Excel" BackColor="ActiveCaption"
                                        Height="25px" OnClick="btnNhapExcel_Click" /></div>
                            </ContentTemplate>
                        </asp:TabPanel>
                    </asp:TabContainer><br />
            </div>
        </div>
    </div>
</asp:Content>
